<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>技术性整改上报</title>
<th:block th:include="include :: header('技术性整改上报')" />
<link href="../static/css/workboard.css" th:href="@{/css/workboard.css}" rel="stylesheet" />
</head>
<style>
	.renderTable{
		display:none;	
	}
</style>
<body>
	<div class="form_content">
		<form action="">
			<table border="0" cellpadding="0" cellspacing="0" width="100%"table-layout:fixed;>
				<tbody>
					<tr>
						<td>
							<div class="page-title">
								<span>技术性整改上报</span>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<table cellpadding="0" cellspacing="0"
								style="width: 100%; padding: 5px;">
								<tbody>
									<tr>
										<td><span>第<span
												th:text="${wdoi.checkCount}==null or ${wdoi.checkCount}=='' ? '1':${wdoi.checkCount-1}"></span>次整改
										</span></td>
										<td align="right" style="padding-right: 20px">审查编号：<span
											th:text="${cd.acceptedNo}==null ? ' ':${cd.acceptedNo}"></span>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table th:if="${cdmList != null && cdmList.size()!=0}" th:each="cdm,stat : ${cdmList}" cellpadding="0" cellspacing="0" class="tbEidt renderTable" style="background-color: #fff; width: 100%;" th:value="${cdm.major}">
								<tbody>
									<tr>
										<td colspan="4">
											<table style="width: 100%;" cellpadding="0" cellspacing="0">
												<tbody>
													<tr>
														<td>
															<table  id="tb" cellpadding="0" cellspacing="0" style="width: 100%">
																<tbody>
																	<tr>
																		<td>
																			<table class="tdEdit" cellpadding="0" cellspacing="0" style="width: 100%; table-layout: fixed;">
																				<tbody>
																					<tr>
																						<td class="tdTitle">专业</td>
																						<td class="tdContent">
																							<select name="$ddpZY" th:class="ddpZY+ ${stat.index}" style="width: 120px;">
																								<option  th:selected="${cdm.major eq cdmselect.major}" th:each="cdmselect:${cdmList}"  th:value="${cdmselect.major}" th:text="${cdmselect.major}"></option>
																							</select>
																						</td>
																						<td class="tdTitle">项目名称</td>
																						<td class="tdContent"><span th:text="${cd.projectName}==null ? ' ':${cd.projectName}"></span></td>
																					</tr>
																					<tr>
																						<td class="tdTitle">建设单位</td>
																						<td class="tdContent" colspan="3"><span th:text="${cd.buildName}==null ? ' ':${cd.buildName}"></span>
																						</td>
																					</tr>
																				</tbody>
																			</table>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
												</tbody>
											</table>
										</td>
									</tr>
									<tr>
										<td colspan="4">
											<table th:if="${cdm.cdftList != null && cdm.cdftList.size()!=0}" th:each="cdft,stat : ${cdm.cdftList}" cellpadding="0" cellspacing="0" class="tdEdit" style="width: 100%; table-layout: fixed;" align="center">
												<tbody>
													<tr>
														<td class="tdTitle">单位工程名称</td>
														<td class="tdContent"><span class="LabelStyle" th:text="${cdft.engineeringName}==null ? ' ':${cdft.engineeringName}"></span>
														</td>
														<td class="tdTitle">答复附件</td>
														<td class="tdContent">
														<a th:if="${cdft.affix==null || cdft.affix.AcceName=='' || cdft.affix.AcceName==null}" disabled="disabled" style="color: Gray;">未上传附件</a>
														<a th:if="${cdft.affix!=null && cdft.affix.AcceName!='' && cdft.affix.AcceName!=null}" rel="noopener noreferrer" th:href="${cdft.affix.AcceName}" target="_blank" style="color:#0026FF;">下载</a>
														</td>
													</tr>
													<tr>
														<td class="tdTitle">设计单位</td>
														<td class="tdContent" colspan="3"><span th:text="${cdft.designUnit}==null ? ' ':${cdft.designUnit}"></span>&nbsp;
														</td>
													</tr>
													<tr>
														<td colspan="4">
															<table cellpadding="0" cellspacing="0" class="tdEdit"
																style="width: 100%;" align="center">
																<tbody>
																	<tr>
																		<td style="width: 50%; height: 30px; text-align: center;"
																			class="tdTitle">问题</td>
																		<td style="width: 50%; text-align: center;"
																			class="tdTitle">答复</td>
																	</tr>
																	<tr>
																		<td style="width: 50%; height: 25px; text-align: left;" class="tdTitle">（一）违反强制性条文</td>
																		<td style="width: 50%" class="tdTitle">&nbsp;</td>	
																	</tr>
																	<tr>
																		<td style="text-align: left; line-height: 17px;" colspan="4">
																	       <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
	                                                                            <tbody>
	                                                                                 <tr th:if="${cdft.emphasizeList != null && cdft.emphasizeList.size()!=0}" th:each="emphasize : ${cdft.emphasizeList}">
	                                                                                     <td>
	                                                                                        <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;table-layout:fixed;">
		                                                                                       <tbody>
		                                                                                           <tr th:if="${emphasize.OpinionConent != null && emphasize.OpinionConent.size()!=0}" th:each="oc,stat : ${emphasize.OpinionConent}">
		                                                                                               <td class="tdContent" style="padding: 0px;">
		                                                                                               	<span th:if="${stat.count != null && stat.count==1}">
		                                                                                               		1、标准编号：<span th:text="${emphasize.StandardNo}==null ? ' ':${emphasize.StandardNo}"></span>&nbsp;条文号&nbsp;<span th:text="${emphasize.ItemNo}==null ? ' ':${emphasize.ItemNo}"></span></br>
		                                                                                               		<span th:text="${oc.Description}==null ? ' ':${oc.Description}"></span>
		                                                                                               	</span>
		                                                                                               	<span th:if="${stat.count != null && stat.count!=1}">
		                                                                                               		<span th:utext="${oc.Description}==null ? ' ':${oc.Description}"></span>
		                                                                                               	</span>
		                                                                                               </td>
		                                                                                               <td class="tdContent" style="text-align: center;border-right: none;">
		                                                                                                  	<span th:text="${oc.ReplyConclusion}==null ? ' ':${oc.ReplyConclusion}"></span>
		                                                                                              	</td>
		                                                                                           </tr>
		                                                                                       </tbody>
		                                                                                   </table>
	                                                                                   </td>
	                                                                                 </tr>
	                                                                             </tbody>
	                                                                         </table>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan="4">
															<table cellpadding="0" cellspacing="0"
																style="width: 100%;"
																align="center">
																<tbody>
																	<tr>
																		<td style="width: 50%; height: 25px; text-align: left;"
																			class="tdTitle">（二）违反一般规范条文</td>
																		<td style="width: 50%" class="tdTitle">&nbsp;</td>
																	</tr>
																	<tr>
																		<td style="text-align: left; line-height: 17px;" colspan="4">
																	       <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
	                                                                            <tbody>
	                                                                                 <tr th:if="${cdft.generalCommentList != null && cdft.generalCommentList.size()!=0}" th:each="generalComment : ${cdft.generalCommentList}">
	                                                                                     <td>
	                                                                                        <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;table-layout:fixed;">
		                                                                                       <tbody>
		                                                                                           <tr th:if="${generalComment.OpinionConent != null && generalComment.OpinionConent.size()!=0}" th:each="oc,stat : ${generalComment.OpinionConent}">
		                                                                                               <td class="tdContent" style="padding: 0px;">
		                                                                                               	<span th:if="${stat.count != null && stat.count==1}">
		                                                                                               		1、标准编号：<span th:text="${generalComment.StandardNo}==null ? ' ':${generalComment.StandardNo}"></span>&nbsp;条文号&nbsp;<span th:text="${generalComment.ItemNo}==null ? ' ':${generalComment.ItemNo}"></span></br>
		                                                                                               		<span th:text="${oc.Description}==null ? ' ':${oc.Description}"></span>
		                                                                                               	</span>
		                                                                                               	<span th:if="${stat.count != null && stat.count!=1}">
		                                                                                               		<span th:utext="${oc.Description}==null ? ' ':${oc.Description}"></span>
		                                                                                               	</span>
		                                                                                               </td>
		                                                                                               <td class="tdContent" style="text-align: center;border-right: none;">
		                                                                                                  	<span th:text="${oc.ReplyConclusion}==null ? ' ':${oc.ReplyConclusion}"></span>
		                                                                                              	</td>
		                                                                                           </tr>
		                                                                                       </tbody>
		                                                                                   </table>
	                                                                                   </td>
	                                                                                 </tr>
	                                                                             </tbody>
	                                                                         </table>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan="4">
															<table cellpadding="0" cellspacing="0" class="tdEdit"
																style="width: 100%;" align="center">
																<tbody>
																	<tr>
																		<td style="width: 50%; height: 25px; text-align: left;"
																			class="tdTitle">（三）其它意见</td>
																		<td style="width: 50%" class="tdTitle">&nbsp;</td>
																	</tr>
																	<tr>
																		<td style="text-align: left; line-height: 17px;" colspan="4">
																	       <table th:if="${cdft.finalCommentList != null && cdft.finalCommentList.size()!=0}"  cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;table-layout:fixed;">
                                                                                <tbody>
                                                                                    <tr th:each="oc,stat : ${cdft.finalCommentList}">
                                                                                        <td class="tdContent">
                                                                                            <span th:utext="${oc.Description}==null ? ' ':${oc.Description}"></span>
                                                                                        </td>
                                                                                        <td class="tdContent" style="text-align: center;border-right: none;">
                                                                                            <span th:utext="${oc.ExpertName}==null ? ' ':${oc.ReplyConclusion}"></span>&nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan="4">
															<table cellpadding="0" cellspacing="0" class="tdEdit"
																style="width: 100%;" align="center">
																<tbody>
																	<tr>
																		<td style="width: 50%; height: 25px; text-align: left;"
																			class="tdTitle">（四）抗震专项审查意见</td>
																		<td style="width: 50%" class="tdTitle">&nbsp;</td>
																	</tr>
																	<tr>
																		<td style="text-align: left; line-height: 17px;" colspan="4">
																	       <table th:if="${cdft.seismicCommentList != null && cdft.seismicCommentList.size()!=0}"  cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;table-layout:fixed;">
                                                                                <tbody>
                                                                                    <tr th:each="oc,stat : ${cdft.seismicCommentList}">
                                                                                        <td class="tdContent">
                                                                                            <span th:utext="${oc.Description}==null ? ' ':${oc.Description}"></span>
                                                                                        </td>
                                                                                        <td class="tdContent" style="text-align: center;border-right: none;">
                                                                                            <span th:utext="${oc.ExpertName}==null ? ' ':${oc.ReplyConclusion}"></span>&nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan="4">
															<table cellpadding="0" cellspacing="0" class="tdEdit"
																style="width: 100%;" align="center">
																<tbody>
																	<tr>
																		<td style="width: 50%; height: 25px; text-align: left;"
																			class="tdTitle">（五）节能及太阳能专项审查意见</td>
																		<td style="width: 50%" class="tdTitle">&nbsp;</td>
																	</tr>
																	<tr>
																		<td style="text-align: left; line-height: 17px;" colspan="4">
																	       <table th:if="${cdft.specialCommentList != null && cdft.specialCommentList.size()!=0}"  cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;table-layout:fixed;">
                                                                                <tbody>
                                                                                    <tr th:each="oc,stat : ${cdft.specialCommentList}">
                                                                                        <td class="tdContent">
                                                                                            <span th:utext="${oc.Description}==null ? ' ':${oc.Description}"></span>
                                                                                        </td>
                                                                                        <td class="tdContent" style="text-align: center;border-right: none;">
                                                                                            <span th:utext="${oc.ExpertName}==null ? ' ':${oc.ReplyConclusion}"></span>&nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
													<tr>
														<td colspan="4">
															<table cellpadding="0" cellspacing="0" class="tdEdit"
																style="width: 100%;">
																<tbody>
																	<tr>
																		<td style="width: 50%; height: 25px; text-align: left;"
																			class="tdTitle">（六）绿色建筑审查意见</td>
																		<td style="width: 50%" class="tdTitle">&nbsp;</td>
																	</tr>
																	<tr>
																		<td style="text-align: left; line-height: 17px;" colspan="4">
																	       <table th:if="${cdft.greenCommentList != null && cdft.greenCommentList.size()!=0}"  cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;table-layout:fixed;">
                                                                                <tbody>
                                                                                    <tr th:each="oc,stat : ${cdft.greenCommentList}">
                                                                                        <td class="tdContent">
                                                                                            <span th:utext="${oc.Description}==null ? ' ':${oc.Description}"></span>
                                                                                        </td>
                                                                                        <td class="tdContent" style="text-align: center;border-right: none;">
                                                                                            <span th:utext="${oc.ExpertName}==null ? ' ':${oc.ReplyConclusion}"></span>&nbsp;
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
												</tbody>
											</table>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			</table>
		</form>

		<th:block th:include="include :: footer" />
		<script th:inline="javascript">
        $(document).ready(function() {
            $('.renderTable').eq(0).show();
            var tableLength = $('.renderTable').length;
            for(var i =0; i<tableLength;i++){
            	(function(i) {//自调用匿名函数,形成了一个闭包,它会独自开辟一个空间存放传进来的i,
            		//change之前先获取selected状态的值
            		var selected = $('.ddpZY' + i).find("option:selected").val();
            		 $('.ddpZY' + i).change(function(){
                         var selectVal = $(this).val();
                         $('.ddpZY' + i).find('option').each(function(){
							$(this).attr("selected",false);
						});
						//重新设置selected 初始值
						$('.ddpZY' + i).find('option[value='+ selected+ ']').attr("selected",true)
						//切换多个table
                         var tables = $('.renderTable');
                         $('.renderTable').each(function (value,index) {
                         	if(selectVal == $(this).attr("value")){
                         		$(this).show().siblings().hide();
                         	}
                         })
                     });
                })(i)
            }
        });
    </script>
		
</body>

</html>